package com.yunxin.core.infra.persistence.mapper.product;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.yunxin.core.infra.persistence.entity.product.ProductUnitPriceConfigVersionDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zero°
 * @since 2023-11-24
 */
@DS("core")
@Mapper
public interface ProductUnitPriceConfigVersionExtendMapper extends ProductUnitPriceConfigVersionMapper {

    /**
     * 根据产品id查询产品结算单价列表
     * @param productId productId
     * @return List<ProductUnitPriceConfigVersionDO>
     */
    List<ProductUnitPriceConfigVersionDO> listProductUnitPriceConfigVersionByProductId(@Param("productId") Long productId);
}